<?php 
/** * @version $Id: view.html.php 48 2011-09-28 06:47:49Z lnmtrung $ */ 

defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view' );

class WrdViewUpgradeuser extends WrdView{        
	function display($tpl = null) {                
		$this->setModel($this->getModel('upgradeuser'), true);        
		$fnc = 'display'.ucfirst($this->getLayout());        
		if (is_callable(array(&$this, $fnc)))            
			$this->$fnc($tpl);        
		else            
			parent::display($tpl);    
	}    
	
	function displayDefault($tpl = null){        
		$mainframe = &JFactory::getApplication();        
		$context = JRequest::getCmd('option');        
		$view = JRequest::getCmd('view');        
		$document = & JFactory::getDocument();        
		$document->setTitle( JText::_('Sysn Users') );        
		JToolBarHelper::title(JText::_('Sync Users'),'sync.png'); 
		       
		WrdHelper::addSubMenu('config',$view);
		$this->sidebar = JHtmlSidebar::render();

		$view = JRequest::getCmd('view');        
		$filter_order           = $mainframe->getUserStateFromRequest( $context.$view.'filter_order_item','filter_order','p.user_id' );   
		$filter_order_Dir       = $mainframe->getUserStateFromRequest( $context.$view.'filter_order_Dir','filter_order_Dir', '' );      
		$lists['order']         = $filter_order;        
		$lists['order_Dir']     = $filter_order_Dir;        
		
		$items					= & $this->get( 'Data');
		$total					= & $this->get( 'Total');
		$pagination 			= & $this->get( 'Pagination' );
			
		$this->assignRef('items',		$items);
		$this->assignRef('pagination',	$pagination);
		$this->assignRef('lists',		$lists);
		
		parent::display($tpl);      
	}
}   